package br.edu.sistemaacademico.builder;




import java.util.ArrayList;
import java.util.List;

public abstract class SQLBuilder {
   protected StringBuilder sql;
   protected String        nomeTabela;
   protected List<String>  colunas;
   protected List<Object>  valores;
   protected String        condicao;

   public void setNomeTabela(String nomeTabela) { this.nomeTabela = nomeTabela;}

   public void setColunas(List<String> colunas) {
      this.colunas = new ArrayList<String>(colunas);
   } // public void setColunas(List<String>)

   public void setValores(List<Object> valores) {
      this.valores = new ArrayList<Object>(valores);
   } // public void setValores(List<Object>)

   public void setCondicao(String condicao) { this.condicao = condicao; }

   public String getSQL() { return sql.toString(); }

   public abstract void buildNomeTabela();
   public abstract void buildColunas();
   public abstract void buildValores();
   public abstract void buildCondicao();
} // public abstract class SQLBuilder
